echo '--->>> start kill running app.py...' 
sudo ps -ef | grep app.py  | awk '{print $2}' | xargs kill -9
echo '--->>> start update epel....' 
sudo yum install -y epel-release > /dev/null  2>&1 
echo '--->>> start install python2-pip....' 
sudo yum install python-pip -y  > /dev/null  2>&1 
echo '--->>> start install flask...' 
sudo pip install flask   > /dev/null  2>&1 
echo '--->>> iptables add port 23333 and restarting...' 
sudo iptables -I INPUT -p tcp --dport 23333 -j ACCEPT
sudo service iptables save
sudo service iptables restart

mkdir /home/smtp -p && cd /home/smtp
echo '--->>> start download app.py....' 
wget -N https://dev.tencent.com/u/EngiGu/p/gizmos/git/raw/master/other/smtp/app.py -O app.py  > /dev/null  2>&1 
echo '--->>> try to run app.py....' 
nohup python app.py > run.log 2>&1 &

echo '--->>> has running on port: 23333 !!!'